package server;

/**
 * 虚拟主机
 */
public class Host {

    /**
     * 虚拟主机名字
     */
    private String name;

    /**
     * 虚拟主机部署的目录
     */
    private String appBase;

    public Host(String name, String appBase) {
        this.name = name;
        this.appBase = appBase;
    }

    public Host(String name, String appBase, Content content) {
        this.name = name;
        this.appBase = appBase;
        this.content = content;
    }

    public Content getContent() {
        return content;
    }

    public void setContent(Content content) {
        this.content = content;
    }

    /**
     * 应用上下文组件
     */
    private Content content;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAppBase() {
        return appBase;
    }

    public void setAppBase(String appBase) {
        this.appBase = appBase;
    }
}
